{extend name="public:base" /}
{block name="content"}
<link rel="stylesheet" href="__CSS__/addcomon.css">
<div class="row" style="padding:15px;">
    <div class="col-xs-12">
        <form class="ajaxForm3" action="{:url('editrun')}" method="post">
            <div class="box">
            <div class="box-header" data-original-title="" style="height: 40px;">
                <h2><i class="glyphicon glyphicon-plus"></i>编辑状态</h2>
            </div>
            <div class="add-box">
                <div class="box-left">
                    <div class="form-group">
                        <label>状态名称:</label>
                        <input type="text" name="name" required class="form-control" value="{$info.name}">
                    </div>
                    <div class="form-group">
                        <label>状态颜色:</label>
                        <input type="color" name="bgcolor" required="" class="form-control" value="{$info.bgcolor}">
                    </div>
                    <div class="form-group">
                        <label>是否启用:</label>
                        <input name="status" value="1" type="checkbox" {eq name="info.status" value='1'}checked{/eq}/>
                    </div>
                </div>
                <div class="btn-box">
                    {:token()}
                    <input type="hidden" name="id" value="{$info.id}">
                    <button type="submit" class="btn btn-color-o" id="submit">确定</button>
                    <button type="reset" class="btn btn-color-g">返回</button>
                </div>
            </div>
        </div>
        </form>
    </div>
</div>
{/block}
{block name="js"}
<script>
    highlight_subnav("{:url('index')}");
</script>'
{/block}